Optimal. Leaf size=26 \[ -\frac {a A}{x}+(A b+a B) x+\frac {1}{3} b B x^3 \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {459}
\begin {gather*} x (a B+A b)-\frac {a A}{x}+\frac {1}{3} b B x^3 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 459
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right ) \left (A+B x^2\right )}{x^2} \, dx &=\int \left (A b \left (1+\frac {a B}{A b}\right )+\frac {a A}{x^2}+b B x^2\right ) \, dx\\ &=-\frac {a A}{x}+(A b+a B) x+\frac {1}{3} b B x^3\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 26, normalized size = 1.00 \begin {gather*} -\frac {a A}{x}+(A b+a B) x+\frac {1}{3} b B x^3 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 24, normalized size = 0.92
method | result | size |
default | \(\frac {b B \,x^{3}}{3}+A b x +B a x -\frac {a A}{x}\) | \(24\) |
risch | \(\frac {b B \,x^{3}}{3}+A b x +B a x -\frac {a A}{x}\) | \(24\) |
norman | \(\frac {\frac {b B \,x^{4}}{3}+\left (A b +B a \right ) x^{2}-A a}{x}\) | \(28\) |
gosper | \(-\frac {-b B \,x^{4}-3 A b \,x^{2}-3 B a \,x^{2}+3 A a}{3 x}\) | \(32\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 24, normalized size = 0.92 \begin {gather*} \frac {1}{3} \, B b x^{3} + {\left (B a + A b\right )} x - \frac {A a}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.65, size = 28, normalized size = 1.08 \begin {gather*} \frac {B b x^{4} + 3 \, {\left (B a + A b\right )} x^{2} - 3 \, A a}{3 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.03, size = 20, normalized size = 0.77 \begin {gather*} - \frac {A a}{x} + \frac {B b x^{3}}{3} + x \left (A b + B a\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.72, size = 23, normalized size = 0.88 \begin {gather*} \frac {1}{3} \, B b x^{3} + B a x + A b x - \frac {A a}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 24, normalized size = 0.92 \begin {gather*} x\,\left (A\,b+B\,a\right )-\frac {A\,a}{x}+\frac {B\,b\,x^3}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________